import { get, post } from './http'

export const API = {
	getValidatorRules: (params) => post('validator/rules', params),
	getSelectOptions: (params) => post('validator/options', params),
	queryCourtAddress: (params) => get('court-address/query', params),
	addCourtAddress: (params) => post('court-address/add', params),
	getCourtAddressDetail: (params) => get('court-address/item', params),
	updateCourtAddress: (params) => post('court-address/update', params),
	removeCourtAddress: (params) => post('court-address/remove', params),
	testAdmin: (params) => get('admin/admin/exception', params),
	queryWidget: (params) => get('/widget/query', params),
	removeWidget: (params) => post('/widget/remove', params),
	addWidget: (params) => post('/widget/add', params),
	updateWidget: (params) => post('/widget/update', params),
	getWidgetItem: (params) => get('/widget/item', params),
}

